﻿using SqlSugar;
using S_Examine.Domains.Entity;
namespace S_Examine.Infrastructure
{
	/// <summary>
	/// Sugar数据上下文
	/// </summary>
	public class SugarDbContext
	{
		private readonly ISqlSugarClient _sqlSugarClient;

		public SugarDbContext(ISqlSugarClient sqlSugarClient)
		{
			_sqlSugarClient = sqlSugarClient;
		}

		//public void CreateSugarTable()
		//{
		//	_sqlSugarClient.DbMaintenance.CreateDatabase();
		//	_sqlSugarClient.CodeFirst.SetStringDefaultLength(50).BackupTable().InitTables(new Type[]
		//	{
		//		typeof(AssessmentIndex),
		//		typeof(SchemeSubjectivity),
		//		typeof(AssessmentScheme),
		//		typeof(SchemeObjective),
		//		typeof(ObjectiveAssessmentIndex),
		//		typeof(ObjectiveScoring),
		//		typeof(ScoringRule),
		//	});
		//}
	}
}
